package fit.deni.pages;

import org.apache.tapestry5.annotations.Persist;
import org.hibernate.Hibernate;

import fit.deni.beans.Klub;

public class Club {
	
	@Persist
	private Klub club;

	public Klub getClub() {
		return club;
	}

	public void setClub(Klub club) {
		this.club = club;
		Hibernate.initialize(this.club.getZaposleni());
		Hibernate.initialize(this.club.getTelefoni());
	}
	
}
